<?php

namespace App\Listeners;

use App\Events\PositionChangeEvent;
use App\Services\UpdateStatisticsNumService;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class StatisticsNumListener implements ShouldQueue
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  StatisticsNumEvent  $event
     * @return void
     */
    public function handle(PositionChangeEvent $event)
    {
        UpdateStatisticsNumService::handle();
    }
}
